Fixed the pesky bug in paging!