diff --git a/node_export.module b/node_export.module
index f44e717..66e49b2 100755
--- a/node_export.module
+++ b/node_export.module
@@ -626,7 +626,9 @@ function node_export_node_clone($original_node) {
       $node->path = NULL;
     }
     else {
-      unset($node->path['pid']);
+      if (is_array($node->path) && isset($node->path['pid'])) {      
+        unset($node->path['pid']);
+      }
       if (module_exists('pathauto')) {
         // Prevent pathauto from creating a new path alias.
         $node->pathauto_perform_alias = FALSE;
@@ -810,4 +812,4 @@ if (!function_exists('uuid_get_uuid')) {
     $uuid_table = 'uuid_'. $table;
     return db_result(db_query("SELECT uuid FROM {{$uuid_table}} WHERE $key = %d", $id));
   }
-}
\ No newline at end of file
+}
