Avoid adding identities twice to the main list.