fix MaxRetryError on windows