Fix page number after change page size