fix bug of httpclient