fixed httpclient bugs.