cubase 10 is deleting the first bar of my recorded track

Ive attached a screenshot, in the editor window you can see that the first midi even has been deleted when recording stops