Fix a bug where the paginator didn't correctly switch to sequential pagination when reaching the page limit.