Fix transfer on windows.