diff --git a/entityreference_prepopulate.module b/entityreference_prepopulate.module
index 2a25682..57d59cb 100644
--- a/entityreference_prepopulate.module
+++ b/entityreference_prepopulate.module
@@ -214,7 +214,7 @@ function entityreference_prepopulate_get_values($field, $instance, $flat_array =
 function entityreference_prepopulate_get_values_from_og_context($field, $instance, $flat_array = FALSE) {
   $field_name = $field['field_name'];
 
-  if (!og_is_group_audience_field($field_name) || !$og_context = og_context()) {
+  if (!og_is_group_audience_field($field_name) || !$og_context = og_context($instance['entity_type'])) {
     return;
   }
 
