fixed page index bug