fix respawn bug