find a bug when max page index