Removing duplicate UIDs.