Fix edit loan application

Fixes #194