modify some compile errors