Fix bug that triggered an unknown error message and would be stuck in an endless loop, making the level unsaveable