BUG: GetLoanLength gets reference for branchcode