diff --git a/common/python/nomadcore/smart_parser/SmartParserCommon.py b/common/python/nomadcore/smart_parser/SmartParserCommon.py
index aa39238cab34f48401c83985e290391061b597d8..491801bd1eedead4a209c7ddf37e991ca452a6a9 100644
--- a/common/python/nomadcore/smart_parser/SmartParserCommon.py
+++ b/common/python/nomadcore/smart_parser/SmartParserCommon.py
@@ -979,7 +979,7 @@ class ParserBase(object):
                         # Saving keys with their orders in the list
                         for cName in hlist:
                             headersave.update({cName : int(hlistc)})
-                            hlistc=+1
+                            hlistc+=1
                         anythingmatched = True
                 if anythingmatched:
                     #print("PRINTING table_parser header:",headersave)