fix an undefined index in updater.