fix the compile errors