Fix agent v1 connection control.