fixed a compiler error