fixing a paging bug