fix download code for Windows