Fix pagination on document base page