Fix an issue with the new XML viewer