diff --git a/samtools.wdl b/samtools.wdl
index aaa7ee3541029b3ca0b5d6351992a63659fff88c..6cedd8ef316cdd23aa0757e48adf5e6b66451410 100644
--- a/samtools.wdl
+++ b/samtools.wdl
@@ -26,7 +26,7 @@ task Merge {
           then
             samtools merge ${outputBamPath} ${sep=' ' bamFiles}
           else
-            ln -sf ${bamFiles} ${outputBamPath}
+            ln -sf ${sep=' ' bamFiles} ${outputBamPath}
         fi
     }