         
         self.searchController.isActive = false
         
-        self.formerScrollingPosition = self.tableView.contentOffset
+        self.correctScrollingPosition = self.tableView.contentOffset
     }
     
     override func prepare(for segue: UIStoryboardSegue, sender: Any?) {

    
    let searchController = UISearchController(searchResultsController: nil)
    
    var formerScrollingPosition: CGPoint = CGPoint(x: 0, y: 0)
    
    // MARK: - IBAction Methods
    

                weakSelf.save(validNote, at: newIndexPath)
            })
        }
        self.correctScrollingPosition = CGPoint(x: 0, y: (self.tableView.tableHeaderView?.frame.size.height)!)
    }
    
    // MARK: - Helper Methods
