fix a thread pool exception