Unintended bug in ThreadWorker's setup method