fix bam->bai check