fix sequence adding order