Fixed the validation of the alpha value.