fixed qthread in tasks