Fixed the MIDI part