Fix method name in agent