Index: skeleton_admin.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/skeleton/skeleton_admin.inc,v
retrieving revision 1.1
diff -u -p -r1.1 skeleton_admin.inc
--- skeleton_admin.inc	17 Jun 2007 15:57:15 -0000	1.1
+++ skeleton_admin.inc	30 Jul 2007 21:39:40 -0000
@@ -231,6 +231,10 @@ function skeleton_create_instance_form_s
       // we have to manually insert the book data -- though hook_form_alter might do it as well
       $nid = db_result(db_query("SELECT id FROM {sequences} WHERE name = '{node}_nid'"));
       $vid = db_result(db_query("SELECT vid FROM {node} WHERE nid = %d", $nid));
+      // remove references created by the book node type
+      if ($data->node_type == 'book') {
+        db_query("DELETE FROM {book} WHERE nid = %d", $nid);
+      }  
       db_query("INSERT INTO {book} (vid, nid, parent, weight) VALUES (%d, %d, %d, %d)", $vid, $nid, $parent_id, $data->weight);
     }
   }  
Index: skeleton_template.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/skeleton/skeleton_template.inc,v
retrieving revision 1.1
diff -u -p -r1.1 skeleton_template.inc
--- skeleton_template.inc	17 Jun 2007 15:57:15 -0000	1.1
+++ skeleton_template.inc	30 Jul 2007 21:39:41 -0000
@@ -193,10 +193,12 @@ function skeleton_form_alter($form_id, &
       }
     }
     // handle taxonomies -- this may apply to all select elements
-    foreach ($form['taxonomy'] as $key => $value) {
-      if (is_numeric($key)) {
-        $form['taxonomy'][$key]['#default_value'] = $node['taxonomy'][$key];
-      }
+    if (!empty($form['taxonomy'])) {
+      foreach ($form['taxonomy'] as $key => $value) {
+        if (is_numeric($key)) {
+          $form['taxonomy'][$key]['#default_value'] = $node['taxonomy'][$key];
+        }
+      }  
     }
     $form['template_id'] = array('#type' => 'value', '#value' => $template->template_id);
     $form['type'] = array('#type' => 'value', '#value' => $template->node_type);    
@@ -223,7 +225,7 @@ function skeleton_form_alter($form_id, &
       '#disabled' => TRUE    
     );      
     // unset the values we don't want or cannot save
-    $unset = array('menu', 'path', 'attachments', 'field_file', 'log', 'preview', 'submit', '#after_build', '#submit');
+    $unset = array('parent', 'weight', 'menu', 'path', 'attachments', 'field_file', 'log', 'preview', 'submit', '#after_build', '#submit');
     foreach ($unset as $item) {
       unset($form[$item]);
     }
