fix a bug in bam2peak