diff --git a/structr-ui/src/main/resources/structr/js/schema.js b/structr-ui/src/main/resources/structr/js/schema.js
index <HASH>..<HASH> 100644
--- a/structr-ui/src/main/resources/structr/js/schema.js
+++ b/structr-ui/src/main/resources/structr/js/schema.js
@@ -778,9 +778,23 @@ var _Schema = {
         var stillUsed = false;
         var normalizedKey = normalizeAttr(key);
         Object.keys(entity).forEach(function(k) {
-            if (entity[k] && (typeof entity[k] === 'string') && entity[k].contains(normalizedKey)) {
-                stillUsed = true;
-                return;
+            if (entity[k] && (typeof entity[k] === 'string')) {
+
+                // check views for usage of this property
+                if (k.startsWith('__')) {
+                    var viewVars = entity[k].split(',');
+
+                    viewVars.forEach(function(viewVar){
+
+                        if (normalizeAttr(viewVar.trim()) === normalizedKey) {
+                            stillUsed = true;
+                        };
+                    });
+
+                    if (stillUsed) {
+                        return;
+                    }
+                }
             }
         });
small fix for the schema editor so that property deletion is a little bit more robust

before you could add properties with certain names and not be able to remove them at all