fixed a windows bug