diff --git a/src/ModelEquationBlock.cc b/src/ModelEquationBlock.cc
index ad5a52b22830f626fd829411808f31b270f14293..00156b515685cd0db2dbf764e91ee31b7ae2b57c 100644
--- a/src/ModelEquationBlock.cc
+++ b/src/ModelEquationBlock.cc
@@ -331,7 +331,7 @@ Epilogue::checkPass(ModFileStructure &mod_file_struct, WarningConsolidation &war
   for (const auto &it : dynamic_def_table)
     if (find(so_far_defined.begin(), so_far_defined.end(), it.first) != so_far_defined.end())
       {
-        cerr << "WARNING: in the 'epilogue' block, variable '" << it.first
+        cerr << "WARNING: in the 'epilogue' block, variable '" << symbol_table.getName(it.first)
              << "' is declared twice" << endl;
         exit(EXIT_FAILURE);
       }