fixed the safety bug that stopped the player from dying