fixed a compiler bug