fix possible bug on windows