Fixed Compiler errors