fix bugs in Updata functionality