fixed bugs in xml