Fix multiple MIDI message problem. (fixed #9)