diff --git a/recipes-bsp/variant-mapt/variant-mapt.bb b/recipes-bsp/variant-mapt/variant-mapt.bb
index a3d46add3902b7749d7f1642fc443de4858e970b..ae45f49f2f636a286ae62e3011c466b216fa2b8c 100644
--- a/recipes-bsp/variant-mapt/variant-mapt.bb
+++ b/recipes-bsp/variant-mapt/variant-mapt.bb
@@ -23,11 +23,12 @@ python () {
 
 }
 
-# Changing BAR of mapt files
+# Changing BAR of mapt files to 0 (field #5 receive 0)
+# Replace each line of MATRIX coeff by a global entry
 do_compile () {
     for MAPT in ${PL_MAPT_PATH}
     do
-        awk 'FNR>1 {$5=0} {print}' ${WORKDIR}/${MAPT} > ${WORKDIR}/${MAPT}.bar0
+        awk 'FNR>1 {$5=0} {if ($1 ~ /MATRIXCOEF\.[^0]/ ) next} {if ($1 ~ /MATRIXCOEF\.0/) {$1="APP.corr_matrix_0.MATRIXCOEF" ; $2="12800" ; $4="51200"}}  {print}' ${WORKDIR}/${MAPT} > ${WORKDIR}/${MAPT}.bar0
     done
 }