fix errors introduced on windows