Problem with recording position

Hello!
I have a problem with recording in dorico 2.2

In a new flow. I record music via midi keyboard and All Is Ok! After I insert the staff repetition. Now I select next White bar, I choose REC in trasport menú, play my keyboard and when I press barspace the record Is stopped and All the note who I haved record are not in correctly position, but are moved some bars forward.

Thank You vert much for your help!

Thank you very much!!