Fix AgentProxy.