fix sequence names and index bam