Fix GetDefaultName for attributes.