Fixed a bug when launching the crawler via cron.