fixes failing api tests on windows.