fixed compiling warning