fixes HttpConn bugs