http connect bug fix