Make sure not to add agent_ids to tag that already exist in a tag