fix sequence numbers