diff --git a/eeschema/sch_plugins/database/sch_database_plugin.cpp b/eeschema/sch_plugins/database/sch_database_plugin.cpp
index 75da555ca6..5ca1c584b4 100644
--- a/eeschema/sch_plugins/database/sch_database_plugin.cpp
+++ b/eeschema/sch_plugins/database/sch_database_plugin.cpp
@@ -138,7 +138,7 @@ LIB_SYMBOL* SCH_DATABASE_PLUGIN::LoadSymbol( const wxString&   aLibraryPath,
         return nullptr;
     }
 
-    return loadSymbolFromRow( symbolName, *table, result );
+    return loadSymbolFromRow( aAliasName, *table, result );
 }