Fixed exception in spawner