correct bug when setXML