Fix a bug with respawn.