fix update operation