fix compiling warning in finsh shell