diff --git a/lib/agent/index.js b/lib/agent/index.js
index <HASH>..<HASH> 100644
--- a/lib/agent/index.js
+++ b/lib/agent/index.js
@@ -226,9 +226,10 @@ var Agent  = self = {
         driver.on('unwatch', self.stop_action);   // a trigger is an action
 
         driver.on('unload',  self.driver_unloaded); // driver done
-      });
 
-      self.drivers[driver_name] = driver_module;
+        self.drivers[driver_name] = driver_module;
+
+      });
 
     });
Mark driver as loaded only if load() is successfull.