             return
         }
 
+        let itemIndex = indexPath.row - 1
 
         switch section {
 
         case .Local:
 
-            guard let friend = friendAtIndexPath(indexPath) else {
+            guard let friend = friendAtIndex(itemIndex) else {
                 return
             }
 


        case .Online:

            let discoveredUser = searchedUsers[indexPath.row]
            cell.configureWithDiscoveredUser(discoveredUser)
        }
    }

            tableView.deselectRowAtIndexPath(indexPath, animated: true)
        }

        guard indexPath.row > 0 else {
            return
        }

        hideKeyboard()

        guard let section = Section(rawValue: indexPath.section) else {
            return
        }

        let itemIndex = indexPath.row - 1

        switch section {

        case .Local:

            if let friend = friendAtIndex(itemIndex) {
                performSegueWithIdentifier("showProfile", sender: friend)
            }

        case .Online:

            let discoveredUser = searchedUsers[itemIndex]
            performSegueWithIdentifier("showProfile", sender: Box<DiscoveredUser>(discoveredUser))
        }
    }
