fixed a compiling bug