Minor fix in isDownloaded flag