Pagination doesn't work like I expected.