Fixed bug with bam files variable