fix compiling warning