fix MidiPatch handling