set correct page when overflow