Topic/coremidi crash fix