Pagination buggy, but working