change toDecimal to getAmount in LoanInvestment.java