Fix use of BigDecimal in place of fractions