Minor fixes in BAM converter