Http client bug fix