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

                weakSelf.save(validNote, at: newIndexPath)
            })
        }
    }
    
    // MARK: - Helper Methods

        
        // Scroll the 1st table view row to be just below the navigation bar when returning
//        self.tableView.setContentOffset(CGPoint(x: 0, y: (self.tableView.tableHeaderView?.frame.size.height)!), animated: true)
        self.tableView.setContentOffset(self.correctScrollingPosition, animated: true)
    }
    
    override func viewWillDisappear(_ animated: Bool) {
