fix Midi import/export regressions