fix logic issue in setting isApkUpdated