small fix in agentpayment