diff --git a/src/graph/Node.cpp b/src/graph/Node.cpp
index 6f0cc55159b1cc72b87bb34230376eb140b7ab8a..33f8f1838bb4418e945d7bb6b2b9be957a6aca10 100644
--- a/src/graph/Node.cpp
+++ b/src/graph/Node.cpp
@@ -288,8 +288,7 @@ std::vector<std::vector<std::shared_ptr<Aidge::Node>>> Aidge::Node::getOrderedCh
 
 std::vector<std::shared_ptr<Aidge::Node>> Aidge::Node::getChildren(const IOIndex_t outId) const {
     assert((outId < nbOutputs()) && "Output index out of bound.");
-    std::vector<std::shared_ptr<Node>> children =
-            std::vector<std::shared_ptr<Node>>(mChildren[outId].size());
+    std::vector<std::shared_ptr<Node>> children;
     for (std::size_t i = 0; i < mChildren[outId].size(); ++i) {
         children.push_back(mChildren[outId][i].lock());
     }