Fixed Compiling errors