fixing bug on windows script.