fix threadpool