Corrected errors while compiling