fix check error on windows