fixed varexp in Thread