diff --git a/Snakefile b/Snakefile
index 41f513a718add0714f92075b5e6887c0f0596a6b..ffaf9c4ffdc8226913bb1e460dd36cf4f7ccd0b2 100644
--- a/Snakefile
+++ b/Snakefile
@@ -728,7 +728,7 @@ rule create_haplotag_table:
 
 rule merge_haplotag_tables:
     input:
-        tsvs=lambda wc: ['haplotag/table/{}/by-cell/haplotag-counts.{}.{}.{}.tsv'.format(sample,cell,wc.windows,wc.bpdens) for cell in BAM_PER_SAMPLE[wc.sample]],
+        tsvs=lambda wc: ['haplotag/table/{}/by-cell/haplotag-counts.{}.{}.{}.tsv'.format(wc.sample,cell,wc.windows,wc.bpdens) for cell in BAM_PER_SAMPLE[wc.sample]],
     output:
         tsv='haplotag/table/{sample}/full/haplotag-counts.{windows}.{bpdens}.tsv'
     shell: