Problem with MIDI Export

I’ve made a quick check and indeed this fix resolved the issue. Unfortunately it didn’t fix this strange chord inversion I’ve described here:

Is it another bug as Badonk says?