fix death bug