fixed a compiling error