Fixed thread pool issue.