Fixed Compile errors