fix the scaling issue for decimals > 2.