fixing the XML code