fixes bug in downloader