fix a bug in setting isCurrentVersionDownloaded