fixed bug for windows