fixed race condition in sequencer