fix bam parser compile error