fix for death bug