diff --git a/app/Classes/LDAP/Attribute.php b/app/Classes/LDAP/Attribute.php
index 73d35bf8..af398bc1 100644
--- a/app/Classes/LDAP/Attribute.php
+++ b/app/Classes/LDAP/Attribute.php
@@ -326,7 +326,7 @@ class Attribute implements \Countable, \ArrayAccess, \Iterator
 	{
 		// If we dont have any objectclasses then we cant know if it is required
 		return $this->oc->count()
-			? $this->oc->intersect($this->schema->required_by_object_classes->keys())->sort()
+			? $this->oc->intersect($this->required_by->keys())->sort()
 			: collect();
 	}
 }
\ No newline at end of file