fixed checkUpdate