Fix for pagination mistake