fix compiling warnings