Retrospective record issue

I don’t know if there’s an exact solution for this, but an easy workaround is to select both parts and do a Bounce Midi