fixed badly formed XML