fixed index calling using samtools and bcftools