HttpAgent fix