fixed XmlHandler bug