fixed the xml bug