Fixed calling saveXML()