Yeaaah... i'm aware of this bug and have already fixed it in the post-jam version, it occurs almost every time you spend a long enough time in the game, and occurs faster the more exits you place.
all because i forgot to add a single line of code.