Maybe fixed isSpawned