fixed the counter in the agent update uri,