Fixed bug in get_available_loans.