diff --git a/functions/copySubsetOfRootFile.py b/functions/copySubsetOfRootFile.py
index b0fc3b2bd2da539e1c33c028e9944e51f437cb28..8b3c760c03b2d15fb17674d941cda8ef281c9d35 100644
--- a/functions/copySubsetOfRootFile.py
+++ b/functions/copySubsetOfRootFile.py
@@ -127,7 +127,7 @@ if __name__ == '__main__':
         if args.tag is None: tagMatch = True
         else: tagMatch = re.search(args.tag,TDirPathWithObjectName)
 
-        if args.veto is None: tagMatch = False
+        if args.veto is None: vetoMatch = False
         else: vetoMatch = re.search(args.veto,TDirPathWithObjectName)