Correcting compilation error