fix bug with name indexing of reference sequence names