MIDI notes missing BUT playing

Hi

When I turn off bind and performance and drag a MIDI to Logic Pro, the last phrase is missing from the piano roll, and yet it plays. So i can’t edit it because it’s not there.

Has anybody encountered anything remotely like this?

Best
M