Fixed bug on windows