Fixed bug in XML data generator