Corrupt XML fix