fix to update operation