Fix gen_spider_pipeline behaviour