fixed bug in loan balance