Fix internal threadpool