Prevented setting value if it's equal to the existing value.