fix a compiling warning