fix sequence error