Fixed agentId within agent flow

Agent is getting passed into add stats correctly.