Fixed HTTPRequest bugs