Fix thread pool