Fixes for MIDI import