Fix failing pagination