 
         if let linkRangeResult = getLinkRangeResultWithTouches(touches) {
             
-            if linkRangeResult.linkRange.startIndex != selectedLinkRangeResult?.linkRange.startIndex  {
+            if linkRangeResult.linkRange.location != selectedLinkRangeResult?.linkRange.location  {
                 if let selectedLinkRangeResult = selectedLinkRangeResult, attributedText = attributedText {
                     self.attributedText = addLinkAttributesToAttributedString(attributedText, withLinkRangeResults: [selectedLinkRangeResult], highlighted: false)
                 }

        for textLink in textLinks {
            let linkType = LinkDetectionType.TextLink
            let matchString = textLink.text
            if let stringIndexRange = text.rangeOfString(textLink.text, options: .CaseInsensitiveSearch) {
                rangesForLinkType.append(LinkRangeResult(linkDetectionType: linkType, linkRange: stringIndexRange, linkString: matchString, textLink: textLink))
            }
        }
        

            // Add all our ranges to the result
            for match in matches {
                let matchRange = match.range
                let matchString = NSString(string: text).substringWithRange(matchRange)
                
                rangesForLinkType.append(LinkRangeResult(linkDetectionType: linkType, linkRange: matchRange, linkString: matchString, textLink: nil))
            }
        }

