diff --git a/include/class.dynamic_forms.php b/include/class.dynamic_forms.php
index 73868aca0ff3ffb053223232ad0658e49837d4c6..5b76646420b5e4a9420f6ae1537657af3f290d9a 100644
--- a/include/class.dynamic_forms.php
+++ b/include/class.dynamic_forms.php
@@ -180,13 +180,14 @@ class TicketForm extends DynamicForm {
 
     static function getInstance() {
         if (!isset(static::$instance))
-            static::$instance = static::getNewInstance();
+            self::getNewInstance();
         return static::$instance;
     }
 
     static function getNewInstance() {
         $o = static::objects();
-        return $o[0]->instanciate();
+        static::$instance = $o[0]->instanciate();
+        return static::$instance;
     }
 }
 // Add fields from the standard ticket form to the ticket filterable fields