diff --git a/misc-scripts/xref_mapping/xref_parser.pl b/misc-scripts/xref_mapping/xref_parser.pl
index fb0c39931c34ea42c4ab1fc96c330849167d7d87..24c8af3e59a9cbca95d88c2be32eedda202dcd1a 100644
--- a/misc-scripts/xref_mapping/xref_parser.pl
+++ b/misc-scripts/xref_mapping/xref_parser.pl
@@ -46,7 +46,9 @@ if ( !$user || !$host || !$dbname ) {
     exit(1);
 }
 
-XrefParser::BaseParser::run(
+my $base_parser = XrefParser::BaseParser->new();
+
+$base_parser->run(
     $host, ( defined $port ? $port : '3306' ),
     $dbname,           $user,
     $pass,             \@species,