Fix pagination: upper bound off by 1 (following https://github.com/wolfgangmm/ShakespeareDemo/commit/e65d4e3)