fix a bug in createXML.pl