threadpool small fix