fix validation problem

When clears color value and cause validation error, and then set the
same color value again will not clear the validation error.