Update crawler.py

Fixed bug with crawler