fix httpclient connection bug