fix a logic issue in isApkUpdated