Fix Attribute conversion to C