remove duplicates in smart_attributes