fix the download method