Fixed bug in XML