diff --git a/includes/og.membership.inc b/includes/og.membership.inc
index 71df6e1..01d14e5 100644
--- a/includes/og.membership.inc
+++ b/includes/og.membership.inc
@@ -65,7 +65,7 @@
     $params += array('@cardinality' => $field['cardinality']);
     // Check field cardinality, that we may add another value, if we have a new
     // OG membership.
-    if (empty($this->id) && !og_check_field_cardinality($entity_type, $etid, $field_name)) {
+    if (empty($this->id) && !og_check_field_cardinality($entity_type, $entity, $field_name)) {
       throw new OgException(format_string('OG membership can not be created in entity %entity-type and bundle %entity-bundle using the field %field-name as the field cardinality is set to @cardinality.', $params));
     }
 
