fix download in tmp issue