fix agent analytics