IO fix on Windows