Fix for rangeList using only large ranges

There was an issue with the rangeList function when only large ranges
where being used. This fix corrects this bug.