Fixed some issues with the pagebreak.