fixed a compiler warning