Fixes to ago agent.