Fix sequencer bug