diff --git a/htdocs/compta/bank/account.php b/htdocs/compta/bank/account.php
index 10c52e657ab7c245abdb7b4c0a73ee86cc620f27..99f7a224a3e3bdc5d2220f9bcb5f20f0b529b480 100644
--- a/htdocs/compta/bank/account.php
+++ b/htdocs/compta/bank/account.php
@@ -833,7 +833,7 @@ if ($id > 0 || ! empty($ref))
 						{
 							$loanstatic->label=$links[$key]['label'];
 						}
-						$loanstatic->ref=$loanstatic->label;
+						$loanstatic->ref=$links[$key]['url_id'];
 						print $loanstatic->getLinkUrl(1,16);
 					}
 					else if ($links[$key]['type']=='member')