Fix BigDecimal conversion