diff --git a/node_export.module b/node_export.module
index d734cbf..9d3643e 100755
--- a/node_export.module
+++ b/node_export.module
@@ -715,7 +715,9 @@ function node_export_node_clone($original_node) {
       $node->path = NULL;
     }
     else {
-      unset($node->path['pid']);
+      if (is_array($node->path) && $node->path['pid']) {
+        unset($node->path['pid']);
+      }
       if (module_exists('pathauto')) {
         // Prevent pathauto from creating a new path alias.
         $node->path['pathauto'] = FALSE;
