Fixed bam conversion