Fixed bugs about respawning