fix some error in compiling