Player spawn and death bug fix