bug fix: a thread now runs until completion.