diff --git a/src/language/ast/ASTNodeAffectationExpressionBuilder.cpp b/src/language/ast/ASTNodeAffectationExpressionBuilder.cpp
index fe1eae64970acc48560075cf9e4bdde54b436fef..b0b9455dba6e7339a5ea5a6caebbcf60c07e9a98 100644
--- a/src/language/ast/ASTNodeAffectationExpressionBuilder.cpp
+++ b/src/language/ast/ASTNodeAffectationExpressionBuilder.cpp
@@ -268,7 +268,8 @@ ASTNodeAffectationExpressionBuilder::ASTNodeAffectationExpressionBuilder(ASTNode
         break;
       }
       default: {
-        throw parse_error("unexpected error: undefined value type for affectation", std::vector{n.begin()});
+        throw parse_error("unexpected error: undefined value type for affectation",
+                          std::vector{n.children[0]->begin()});
       }
       }
     };