fix dup key update bug