minor fixes on MIDI learn