Fixed Attribute_converter

Fixed to_ method as well