Minor bug fix for pagination?