diff --git a/plugins/ml/src/main/java/greycat/ml/neuralnet/NeuralNet.java b/plugins/ml/src/main/java/greycat/ml/neuralnet/NeuralNet.java
index <HASH>..<HASH> 100644
--- a/plugins/ml/src/main/java/greycat/ml/neuralnet/NeuralNet.java
+++ b/plugins/ml/src/main/java/greycat/ml/neuralnet/NeuralNet.java
@@ -76,7 +76,7 @@ public class NeuralNet {
             //load all layers
             layers = new Layer[nb];
             for (int i = 0; i < layers.length; i++) {
-                layers[i] = Layers.loadLayer(backend.node(i));
+                layers[i] = Layers.loadLayer(backend.node(i+1));
             }
         } else {
             layers = new Layer[0];
<I> to avoid loading the root as a layer