fixed a compile warning