fixes weird ie-specific bug when downloading over https