Make sure duplicates are consistent.