Bugfix : modify total page number and init page number