diff --git a/specfile_storage_path_build.py b/specfile_storage_path_build.py
index 15cb90f8b2d0727fd1683723be3c52e6ed26a02c..53954c8f959b430b46d235c6cf2d8e95bad143a3 100644
--- a/specfile_storage_path_build.py
+++ b/specfile_storage_path_build.py
@@ -42,7 +42,7 @@ for rspec in data:
             bindist.tarball_name(spec, ".spec.json"),
             bindist.tarball_name(spec, ".spec.yaml"),
         ]
-        to_be_fetched.add(str(spec.dag_hash()) + " ".join(build_cache_paths))
+        to_be_fetched.add(str(spec.dag_hash()) + " " + " ".join(build_cache_paths))
 
 for elem in to_be_fetched:
     print(elem)