fixed a problem of paging logic in list and archive mode