fix a empty queue bug in sequencer