fix duplicated attributes.