diff --git a/scald_og.module b/scald_og.module
index 590910a..523cc51 100644
--- a/scald_og.module
+++ b/scald_og.module
@@ -110,20 +110,21 @@ function scald_og_scald_atom_access($atom, $action, $account = NULL) {
   $account_full = user_load($account->uid);
 
   $og_user_node = field_get_items('user', $account_full, 'og_user_node');
+  $og_group_ref = key(og_get_group_audience_fields('scald_atom', $atom->type));
 
   if ($action == 'create') {
     // The "create" action is currently not supported.
     return;
   }
 
-  if (isset($atom->og_group_ref)) {
-    $atom_og_group_ref = field_get_items('scald_atom', $atom, 'og_group_ref');
+  if (isset($atom->$og_group_ref)) {
+    $atom_og_group_ref = field_get_items('scald_atom', $atom, $og_group_ref);
   }
   else {
     // In case the OG audience field cannot be found, the atom is probably
     // not fully loaded.
     $atom_full = scald_atom_load($atom->sid);
-    $atom_og_group_ref = field_get_items('scald_atom', $atom_full, 'og_group_ref');
+    $atom_og_group_ref = field_get_items('scald_atom', $atom_full, $og_group_ref);
   }
 
   $og_combined_scald_actions = array(
