fixed a death bug