Fixed bugs in XML report.