Fixed bug when running log downloader for first time.