diff --git a/og_subgroups.module b/og_subgroups.module
index 0c2ebdb..1a6a0fa 100644
--- a/og_subgroups.module
+++ b/og_subgroups.module
@@ -247,7 +247,7 @@ function _og_subgroups_hierarchy_block() {
 /**
  * Implementation of hook_nodeapi().
  */
-function og_subgroups_nodeapi($node, $op, $teaser = NULL, $page = NULL) {
+function og_subgroups_nodeapi(&$node, $op, $teaser = NULL, $page = NULL) {
   og_subgroups_include('tree');
   
   switch ($op) {
@@ -264,6 +264,9 @@ function og_subgroups_nodeapi($node, $op, $teaser = NULL, $page = NULL) {
     case 'update':
       // Check if this is a group
       if (og_is_group_type($node->type)) {
+        // Attach the group's parent group, if one
+        $parent = og_subgroups_get_group_parent($node);
+        $node->og_parent = $parent ? $parent : NULL;
         // Save the node parent, if one
         og_subgroups_set_parent($node, $node->og_parent);
         // Optionally force children to be private
