diff --git a/html/admin/sql/patch/upgrade85.sql b/html/admin/sql/patch/upgrade85.sql
index 948425185..55ecbb571 100644
--- a/html/admin/sql/patch/upgrade85.sql
+++ b/html/admin/sql/patch/upgrade85.sql
@@ -159,7 +159,7 @@ declare
r_record jnt_fic_attr%ROWTYPE;
begin
r_record=NEW;
-perform fiche_attribut_synchro(r_record.fd_id);
+perform comptaproc.fiche_attribut_synchro(r_record.fd_id);
return NEW;
end;
diff --git a/include/class_acc_operation.php b/include/class_acc_operation.php
index f595f9e7d..72ccc4f06 100644
--- a/include/class_acc_operation.php
+++ b/include/class_acc_operation.php
@@ -489,6 +489,7 @@ class Acc_Detail extends Acc_Operation {
function __construct($p_cn,$p_jrid=0) {
parent::__construct($p_cn);
$this->jr_id=$p_jrid;
+ $this->det=new stdClass();
}
/**
*@brief retrieve some common data from jrnx / jrn as