download thread bug fix