Fix misplaced threads option