xml structure fix