fix broken xml structure