diff --git a/include/class.mailfetch.php b/include/class.mailfetch.php
index c85815138f854cc28eb07bdc1b1bf04384c1a77a..0d608cdde7283bad4fdeec31a9bd102fa0636907 100644
--- a/include/class.mailfetch.php
+++ b/include/class.mailfetch.php
@@ -605,6 +605,7 @@ class MailFetcher {
     function createTicket($mid) {
         global $ost;
 
+        unset($this->tnef);
         if(!($mailinfo = $this->getHeaderInfo($mid)))
             return false;
 
diff --git a/include/class.search.php b/include/class.search.php
index efc9bc4a188ebe2253431359f8c919c7a17a34f9..35b32e8b256eeeb42c1ef38bf87518ed9afcb2fc 100644
--- a/include/class.search.php
+++ b/include/class.search.php
@@ -406,7 +406,8 @@ class MysqlSearchBackend extends SearchBackend {
             return false;
 
         // Start rebuilding the index
-        $this->getConfig()->set('reindex', 1);
+        $config = new MySqlSearchConfig();
+        $config->set('reindex', 1);
         return true;
     }