Fixed return value for custom attributes.