Fix IOException in Windows