fix broken XML