Fix validating decimal values.