fix compile errors
fix some compile errors