Death Crash fix

Fixed a crash that happened when the player died.