Corrected compilation errors