fix some error on windows