     
     
     /// reset previous search result
-    override func viewWillAppear() {
-        
-        super.viewWillAppear()
+    override func viewDidDisappear() {
+        
+        super.viewDidDisappear()
         
         self.resultMessage = nil
     }

    
    // MARK: Action Messages
    
    ///
    @IBAction func highlight(_ sender: AnyObject?) {
        
        self.endEditing()
        self.validateObject()

            else {
                NSSound.beep()
                return
            }
        
        guard let batchReplacement = self.representedObject as? BatchReplacement else {
            assertionFailure("No batchReplacement object is set.")
