Accidentally found a way to avoid crash on game restart by replacing it with room_goto(initial room).