diff --git a/workflow/main.nf b/workflow/main.nf
index 272e256517890031a475f24f57582e036e2876a0..4a29476519ce8e6f7c478ecc3229b9c372a83710 100755
--- a/workflow/main.nf
+++ b/workflow/main.nf
@@ -29,7 +29,7 @@ process cr_count {
         path(fastq)
         
     output:
-        tuple val(sample), path("${sample}/outs/**")
+        tuple val(sample), path("${task.index}_${sample}/outs/**")
 
     script:
         // Check reference
@@ -66,7 +66,7 @@ process cr_count {
         
         // Run Cell Ranger count
         """
-        cellranger count --id=$sample \
+        cellranger count --id=${task.index}_${sample} \
         --transcriptome=$ref \
         --fastqs=. \
         --sample=$sample \