As Charles has said, you do need to show the full content of the file (not just the characters that print) to work these things out.
I suspect you are removing a section break and the page setup and headers/footers from the last section then flood back over (what was) the preceding section.
|