fixed concurrency bug with client pool