fixed a windows compile error