fixed #82. Class Cast Exception caused by changing numbers to BigDecimal