fix sequence lookup