Fixed exception when spawning spider