Regression bug fix in BAM converter