fix sequence parsing.