bugfix for respawn