major bugfix in split_bam()