fix warning in compiling