diff --git a/Snakefile b/Snakefile
index 5432328496cf9d827cdcd2f46ef6a1bb18065f6a..9fbb633a46406f0bcfe8cfab68c7c6c08af4ac77 100644
--- a/Snakefile
+++ b/Snakefile
@@ -34,6 +34,9 @@ def get_remote_path(path):
 rule fetch_epic:
     output:
         filepath="EPIC/{PATH}"
+    params:
+        # wildcards are not included in hash for caching, we need to add them as params
+        PATH=lambda wildcards: wildcards.PATH
     cache: True
     retries: 3
     shell: """