Fixed the thread pool