fix incorrect assumption in uniqueattribute