Bug pagination with prefix and use_page_number

Fix bug pagination with prefix and use_page_number