fixed bug on windows