fixed qthread issue