fix compiling errors