Fix the stupid pagination bug.