Fixed the midi ouput