I have document with some sections. In every section I have current page number and total number of section pages which placed in the footer. Problem: I have two lines on the third page, but page number displayed only "page 2 from 3".
But if I add some lines (even empty) to the third page - page number in the footer become correct - "page 3 from 3". On the picture you can see problem (I've made pages shorter in the image editor). How can I solve it without adding additional lines?