I have just reworked how the game resets after the player dies and now it should be physically impossible for this bug to happen! :)