fix compiling error