Fixed fix_engine compile errors