fixed a windows specific bug