fixing broken xml