fixed erros and respawn stuff