Fixed a bug in the XML parser