fix sequence parsing