bug fix in http cookies handling