Fixed bug in xml data generator