fixed bug in thread_spider.py