Fixed crashes and bugs from earlier MIDI file import improvments...