fix download method