guard against infinite recursion in rangeStartForIndex