When I connect my sustain pedal its inverted and notes are only sustained when releasing the pedal. When i open the settings and change absolutely nothing, it works. So this must be a bug. It would be better if the pedal settings were not part of the midi template also