 
         case .MessageRecord:
 
-            if itemIndex < (isMoreMessagesFold ? Section.maxNumberOfItems : (filteredUserMessages?.count ?? 0)) {
+            if itemIndex < (isMoreMessagesFold ? Section.maxNumberOfItems : countOfFilteredUserMessages) {
                 let cell = tableView.dequeueReusableCellWithIdentifier(searchedMessageCellID) as! SearchedMessageCell
                 return cell
             } else {

    }()
    private var filteredFeeds: [Feed]?

    private var keyword: String?

    private let keyboardMan = KeyboardMan()

//                return 0
//            }
        case .MessageRecord:
            //return countOfFilteredUserMessages
            if let count = filteredUserMessages?.count where count > 0 {
                if !isMoreMessagesFold {
                    return count + 1
