Update the value properly.