Minor fixes (midi output)