fixing converter from XML to object