diff --git a/src/scripts/coopstarter.js b/src/scripts/coopstarter.js
index d0e048ad3fbd279c67471e291210956fd8a6fec8..af78327f151318760b3e2b945dc8fde020d0276b 100644
--- a/src/scripts/coopstarter.js
+++ b/src/scripts/coopstarter.js
@@ -494,14 +494,16 @@ function addProperFilterToSearchComponents(targetId) {
       let instance_only = baseElement.querySelectorAll(
         ".instance_database_only"
       )[0];
-      let checkbox_instance_only = instance_only.querySelector("input");
-      if (checkbox_instance_only) {
-        checkbox_instance_only.onclick = function() {
-          if (this.checked) {
-            //We have to retrieve all data-scr needed to make them pointed only on the instance.
-            //How to?
-          }
-        };
+      if (instance_only) {
+        let checkbox_instance_only = instance_only.querySelector("input");
+        if (checkbox_instance_only) {
+          checkbox_instance_only.onclick = function() {
+            if (this.checked) {
+              //We have to retrieve all data-scr needed to make them pointed only on the instance.
+              //How to?
+            }
+          };
+        }
       }
 
       //MORE CRITERIAS