Fixed bug in Http classes