update method bug fix