fix infinite loop bug when out of range
bump