Fix windows specific bug