diff --git a/src/shared/js/Component.js b/src/shared/js/Component.js
index <HASH>..<HASH> 100644
--- a/src/shared/js/Component.js
+++ b/src/shared/js/Component.js
@@ -83,6 +83,12 @@
             throw new Error('The "el" parameter is not present in the DOM');
         }
 
+        /**
+         * A unique id to identify the instance of a component.
+         * @type {Number}
+         */
+        this.uid = (uid += 1);
+
         // el is HTMLElement
         if (el !== undefined && el.nodeType !== undefined && el.nodeType === document.ELEMENT_NODE) {
 
@@ -105,12 +111,6 @@
         }
 
         /**
-         * A unique id to identify the instance of a component.
-         * @type {Number}
-         */
-        this.uid = (uid += 1);
-
-        /**
          * Indicates if a component is enabled.
          * @type {Boolean}
          * @private
@@ -223,6 +223,7 @@
         this.disable();
 
         if (this._el !== undefined) {
+            console.log(this._el.getAttribute('data-uid'));
             delete ch.instances[this._el.getAttribute('data-uid')];
         }
#<I> fix uid, it was always undefined