diff --git a/kfet/templates/kfet/kpsul.html b/kfet/templates/kfet/kpsul.html
index 7b907f80..8e1f44f3 100644
--- a/kfet/templates/kfet/kpsul.html
+++ b/kfet/templates/kfet/kpsul.html
@@ -833,7 +833,7 @@ $(document).ready(function() {
if (settings['addcost_for']
&& settings['addcost_amount']
&& account_data['trigramme'] != settings['addcost_for']
- && article_data['5'])
+ && article_data[5])
amount_euro -= settings['addcost_amount'] * nb;
var reduc_divisor = 1;
if (account_data['is_cof'])
diff --git a/kfet/views.py b/kfet/views.py
index 7a2700d1..b684b90f 100644
--- a/kfet/views.py
+++ b/kfet/views.py
@@ -1019,8 +1019,7 @@ def kpsul_perform_operations(request):
operation.is_checkout = False
if operationgroup.on_acc.is_cof:
if is_addcost & operation.article.category.has_addcost:
- operation.addcost_amount = operation.addcost_amount \
- / cof_grant_divisor
+ operation.addcost_amount /= cof_grant_divisor
operation.amount = operation.amount / cof_grant_divisor
to_articles_stocks[operation.article] -= operation.article_nb
else: