fix page index bug