Fix page numbers in pagination counts