fixes issue #1 with paging.