fix paging method