Finished fixing refseq switching bug