[Help] no game over with chrono engine(moghunter)

Hi, I'm trying to get the player to be transferred to another map when he loses to the boss, but he gets stuck in the battle. I'm using the Kath_GameOver.js plugin to call the teleporting event. I created a switch to activate the boss, and disable it in the common event that should teleport the player; I'm also exchanging the main player for another one at the event.

Does not teleport the player and is stuck, attached image.

Original thread: https://forums.rpgmakerweb.com/threads/help-no-game-over-with-chrono-engine-moghunter.117541/