Fixed an issue that I found with rangeList when only large ranges are used

When a large range is used and rangeList is called it had an extra element in the return array that should not have been there.