diff --git a/PhysicsAnalysis/JetTagging/JetTagValidation/JetTagDQA/scripts/mergePhysValFiles.py b/PhysicsAnalysis/JetTagging/JetTagValidation/JetTagDQA/scripts/mergePhysValFiles.py
index 3de30a5b284fdd1cc53cc508d83af20ba32e56b3..8d4c8baeb01266ea34d8a39f0de41f83e092d81b 100644
--- a/PhysicsAnalysis/JetTagging/JetTagValidation/JetTagDQA/scripts/mergePhysValFiles.py
+++ b/PhysicsAnalysis/JetTagging/JetTagValidation/JetTagDQA/scripts/mergePhysValFiles.py
@@ -116,7 +116,6 @@ def mergeFolder(path):
     for jetcont in jetcontainers:
         if jetcont in path:
             currentdir = gDirectory.GetPath()
-            gDirectory.cd(path)
             # create /restCategory
             print("Create directory " + path + "/other_histograms/histos")
             tagfolders[path+"/"+restCategory] = f.mkdir(path+"/other_histograms/histos")