Fixed some bugs in persistance with Loan and Loans