Fix sustain pedal bug in cyclic mode