Fix bug on windows