fix: next view crashed when out of range