diff --git a/themes/bootstrap3/js/common.js b/themes/bootstrap3/js/common.js
index 707461a01badbdab7d04ce5b915a95acf5460ed3..8e0fb508df71efcb7da5da7abee5b9a45b448952 100644
--- a/themes/bootstrap3/js/common.js
+++ b/themes/bootstrap3/js/common.js
@@ -31,10 +31,11 @@ var VuFind = (function VuFind() {
     if (_submodules.indexOf(name) === -1) {
       _submodules.push(name);
       this[name] = typeof module == 'function' ? module() : module;
-    }
-    // If the object has already initialized, we should auto-init on register:
-    if (_initialized && this[name].init) {
-      this[name].init();
+
+      // If the object has already initialized, we should auto-init on register:
+      if (_initialized && this[name].init) {
+        this[name].init();
+      }
     }
   };
   var init = function init() {