threadpool fix