Update the correct value for attribute.