diff --git pimport.module pimport.module
index 43af37e..c282dff 100755
--- pimport.module
+++ pimport.module
@@ -323,8 +323,8 @@ function pimport_import_csv_batch_process($user, $type, $pid, $file, $encoding,
       $unique_id = "";
       // For system generated ids load a node for the nid if it exists...
       if ($unique_id_field == "system_id") {
-        $unique_id = $line['system_id'];
-
+        $unique_id_heading = db_result(db_query("SELECT heading FROM {pimport_profile_data} WHERE pid = %d && field_match = 'system_id'", $pid));
+        $unique_id = $line[array_search($unique_id_heading, $header)];
       }
       // set up a fields array
       $result = db_query("
