fix sam/bam issue