update corrupt xml