fix bug for HttpClient Cookies