try to fix bug in html downloader

not finished.