correcting compilation error in debug mode