diff --git a/common/python/nomadcore/local_meta_info.py b/common/python/nomadcore/local_meta_info.py
index 08e2e15623a5203913c8fe617d07d25321ab8a94..2113fa993c88202ee995e8a7f8ebc03620085e13 100644
--- a/common/python/nomadcore/local_meta_info.py
+++ b/common/python/nomadcore/local_meta_info.py
@@ -9,6 +9,7 @@ from nomadcore import compact_sha
 import json
 import os, re
 from nomadcore.json_support import jsonCompactS, jsonCompactD, jsonIndentD
+from io import open
 """objects to handle a local InfoKinds with unique name (think self written json)"""
 
 class InfoKindEl(object):
diff --git a/common/python/nomadcore/simple_parser.py b/common/python/nomadcore/simple_parser.py
index d43cb30cae95130641b98fe28f52613aa0e930a0..a431ca48c056ac0a09ab6b4854bef7c30b8d655b 100644
--- a/common/python/nomadcore/simple_parser.py
+++ b/common/python/nomadcore/simple_parser.py
@@ -739,7 +739,7 @@ class CompiledMatcher(object):
                 result['matcherName'] = 'coverageIgnore'
         result['matchFlags'] = (
             result['match'] | (result['coverageIgnore'] << 2) |
-            targetStartEnd << 5 | int(result['matcher_does_nothing']) << 6)
+            targetStartEnd << 5 | int(result['matcher_does_nothing'] and result['match']) << 6)
         return result
 
     def handleMatchTelemetry(self, parser, match, line, targetStartEnd):