fix code on windows