fixed some update problems