My character permanently went to the one point

Hi!
I got a bug in my last game.
My character (after its second death or even a few seconds before it) started to go to the one point on the map.
I could change the character’s position when I pressed (holded) the right button of the mouse. But after unholding the button the character immediately went to the point.
The bug kept till the end of the game.

Updated 2023, July 11
I had this annoying bug again. Thanks for your fix…