fix update method