fix update method error