             else { return }
 
         injectMention(forUser: user)
-        userNameMatches = nil
+        userNameMatches.removeAll()
         refreshTableView()
 
         view?.becomeFirstResponder()

    private var tapRecognizer: UITapGestureRecognizer!
    private let originalAutoCorrectionType: UITextAutocorrectionType
    private let originalTextColor: UIColor
    private var userNameMatches: [MentionUser]?

    private var mentionCache = [Int : Int]()


            }
        }
        else {
            userNameMatches.removeAll()
            tableView?.reloadData()
            tableView?.hidden = true
        }

        if userNameMatches.count > 0 {
            if view?.m_autoCorrectionType != .No {
                view?.m_autoCorrectionType = .No
                refreshTextView()
