fix sequence errors