Fix bug on Windows