Fix for pagination.