Document structure fix