When you delete a document's heading or an entire page, normally an empty heading is left in the document - remove this by using the paragraph button or by using the HTML/Layout button to get hold of the HTML-code for the heading, which is to be deleted.