fixed problems with addLoanTable