fix sequence_type bug