Change syntax for pagination to avoid some warnings.