fix page number = 0 issue