fix NPE in downloader