Correcting the paging functionality