found flag_sequence bug