Fix page index shown issue.