Index: relativity.module
===================================================================
--- relativity.module	(revision 6)
+++ relativity.module	(working copy)
@@ -1047,7 +1047,7 @@
   if (is_numeric(arg(4))) {
     //check if parent node actually exists
     if (db_result(db_query("SELECT COUNT(nid) FROM {node} WHERE nid=%d", arg(4)))) {
-      if (array_key_exists(arg(2), relativity_node_list())) {
+      if (array_key_exists($node->type, relativity_node_list())) {
         $node->parent_node = arg(4);
       }
     }
@@ -1704,7 +1704,8 @@
 
       // and common child relationship isn't required
       if ($may_create && node_access('update', $parent)) {
-        $items[] = l(t('Create new !type', array('!type' => $type_name)), "node/add/$type/parent/$parent_nid", array('class' => 'relativity_create_'. $type));
+      	$type_url_str = str_replace('_', '-', $type);
+        $items[] = l(t('Create new !type', array('!type' => $type_name)), "node/add/$type_url_str/parent/$parent_nid", array('class' => 'relativity_create_'. $type));
       }
 
       // only show link to attach existing node when the potential child doesn't require a parent.
