Issue#688: fix bugs in LendingViewModel

resolves #688