Fixed several kinks in the Port MIDI handler