fix concurrency issue on HTTPClient