diff --git a/biopet.wdl b/biopet.wdl
index f9d2a6bd162cc82a8115b38f27be6c895205c682..cc3a9159694a9ac7edf8c8321f57c57d78fe395a 100644
--- a/biopet.wdl
+++ b/biopet.wdl
@@ -88,7 +88,8 @@ task FastqSplitter {
     }
 
     output {
-        Array[File] outputFastqFiles = glob(outputPath + "/chunk_*/" + basename(inputFastq))
+        Array[File] chunkDirs = prefix(outputPath + "/chunk_", chunks)
+        String filename = basename(inputFastq)
     }
 }