fix download thread