fix BAM