diff --git a/reading_machine/src/Config.cpp b/reading_machine/src/Config.cpp
index 52129edd714b01537f332dafbd28c43b598f2fd6..0fc17c65fa325fe2263640f362dbf821567719c7 100644
--- a/reading_machine/src/Config.cpp
+++ b/reading_machine/src/Config.cpp
@@ -146,7 +146,7 @@ void Config::printForDebug(FILE * dest) const
       std::string toPrintCol = colContent;
       try
       {
-        if (getColName(i) == headColName && toPrintCol != "_")
+        if (getColName(i) == headColName && toPrintCol != "_" && !toPrintCol.empty())
           if (toPrintCol != "0")
             toPrintCol = getAsFeature(idColName, std::stoi(toPrintCol));
       } catch(std::exception & e) {util::myThrow(fmt::format("toPrintCol='{}' {}", toPrintCol, e.what()));}