Midi phrase is not correct in the score editor

I have a midi phrase but it’s not correct in the score editor.

I can’t seem to resolve it.

Any idea what I am doing wrong?

Could it be that another, shorter note is hidden under the 4th note (B3 in bar 63)?

I couldn’t find one. In the end I cut the entire midi section and copied from the notes from the next bar which appeared okay in the score editor. Which is weird, as that bar was originally copied from the previous bar in the midi key editor.

The key signature keeps disappearing from the score editor, too. Any idea why this is happening? Thanks.

You can set the key separately in the lower system
image

image