correct some compile errors