Fix for race

https://ci.appveyor.com/project/yaey8Hee/oong7pha/build/171