corrected bug on windows