diff --git a/misc-scripts/xref_mapping/xref_mapper.pl b/misc-scripts/xref_mapping/xref_mapper.pl
index 37c7ce0ce5912a3bb21e925fc3ad3ff516b9ad45..bbb6278c80b1c5e42a39535a6dc6a61c3d09fd4e 100644
--- a/misc-scripts/xref_mapping/xref_mapper.pl
+++ b/misc-scripts/xref_mapping/xref_mapper.pl
@@ -81,8 +81,8 @@ if(defined($xref_hash{host})){
   $host = $xref_hash{'host'};
   $user = $xref_hash{'user'};
   $dbname = $xref_hash{'dbname'};
-  if(defined($xref_hash{'pass'})){
-    $pass = $xref_hash{'pass'};
+  if(defined($xref_hash{'password'})){
+    $pass = $xref_hash{'password'};
   }
   else{
     $pass = '';
@@ -132,8 +132,8 @@ if(defined($species_hash{'species'})){
   $host = $species_hash{'host'};
   $user = $species_hash{'user'};
   $dbname = $species_hash{'dbname'};
-  if(defined($species_hash{'pass'})){
-    $pass = $species_hash{'pass'};
+  if(defined($species_hash{'password'})){
+    $pass = $species_hash{'password'};
   }
   else{
     $pass = '';