Correcting compilation errors