Corrected bug on windows