attempt to fix XmlError dtor