fix some compile errors