Fix pedal release bug