"Anticipated" latency

Hello Cubase users.

I fumbled to find but now I’m too tired, I ask for help!

Here. When I record a midi track by following the metronome, the recording is always anticipated, as in the attached image.

In other words, unlike latency, shifting to the right, the shift is in the other direction, to the left.

How do I make the recording automatically shift to the right?

Thank you in advance!