Fix AttributeDefinition class.