avoid exception when BigDecimal is badly formatted