diff --git a/simple_access.module b/simple_access.module
index 2383036..1770e6b 100644
--- a/simple_access.module
+++ b/simple_access.module
@@ -321,8 +321,8 @@ function simple_access_node_access_records($node) {
  */
 function simple_access_node_grants($account, $op) {
   $gids = simple_access_groups_from_roles(array_keys($account->roles));
-  $grants['simple_access'] = $gids;
-
+  $grants['simple_access'] = array_keys($gids);
+  
   if (in_array($op, array('view', 'update', 'delete')) && !empty($gids)) {
     $pids = db_select('simple_access_profiles_access', 'p')
       ->fields('p', array('pid'))
