diff --git a/sites/all/modules/unl/unl_migration.php b/sites/all/modules/unl/unl_migration.php
index c2d3db40d04311e01a4ce72e9d3788a972a7ce8b..1c123e8c859bbc5112ced50e830745f495b604a7 100644
--- a/sites/all/modules/unl/unl_migration.php
+++ b/sites/all/modules/unl/unl_migration.php
@@ -306,8 +306,10 @@ class Unl_Migration_Tool
         if (($fragmentStart = strrpos($path, '#')) !== FALSE) {
             $path = substr($path, 0, $fragmentStart);
         }
-        $path = strtolower($path);
         $path = trim($path, '/');
+        if (array_search(strtolower($path), array_map('strtolower', $this->_siteMap)) !== FALSE) {
+          return;
+        }
         $this->_siteMap[hash('SHA256', $path)] = $path;
     }
     
@@ -416,7 +418,6 @@ class Unl_Migration_Tool
                 if (!$path) {
                     $path = '';
                 }
-                $path = strtolower($path);
                 $path = trim($path, '/');
                 
                 if ($fragmentPos = strrpos($path, '#') !== FALSE) {
@@ -426,7 +427,7 @@ class Unl_Migration_Tool
                 if (substr($path, -1) == '/') {
                     $path = substr($path, 0, -1);
                 }
-                $nodeId = array_search($path, $this->_nodeMap, TRUE);
+                $nodeId = array_search(strtolower($path), array_map('strtolower', $this->_nodeMap), TRUE);
                 if ($nodeId) {
                     $item['link_path'] = 'node/' . $nodeId;
                 }  
@@ -463,7 +464,6 @@ class Unl_Migration_Tool
                     if (!$path) {
                         $path = '';
                     }
-                    $path = strtolower($path);
                     $path = trim($path, '/');
                     
                     if (($fragmentPos = strrpos($path, '#')) !== FALSE) {
@@ -473,7 +473,7 @@ class Unl_Migration_Tool
                     if (substr($path, -1) == '/') {
                         $path = substr($path, 0, -1);
                     }
-                    $nodeId = array_search($path, $this->_nodeMap, TRUE);
+                    $nodeId = array_search(strtolower($path), array_map('strtolower', $this->_nodeMap), TRUE);
                     if ($nodeId) {
                         $item['link_path'] = 'node/' . $nodeId;
                     }