fixed bug if only 1 MIDI device is connected