consistently update page numbers also for broken documents