threadPool bugfix