fix a bug in xml