Fixed crashes/bugs associated with remove deathscreen function

Fixed crashes/bugs associated with remove deathscreen function