fix some bugs and make the spider operate well