Fix bug that didn't remove uniques.