Loop Record Note Hang

Hi,

I try to use the loop record, unfortunately i have note hanging when i play at the border of the recorded midi track ?

Thanks in advance,
Have a good day,
Rgds,