Fixed a bug in htmlscraper