Fix threadpool initialize.