diff --git a/lib/android/app/src/main/java/com/reactnativenavigation/viewcontrollers/stack/StackController.java b/lib/android/app/src/main/java/com/reactnativenavigation/viewcontrollers/stack/StackController.java
index <HASH>..<HASH> 100644
--- a/lib/android/app/src/main/java/com/reactnativenavigation/viewcontrollers/stack/StackController.java
+++ b/lib/android/app/src/main/java/com/reactnativenavigation/viewcontrollers/stack/StackController.java
@@ -198,7 +198,7 @@ public class StackController extends ParentController<StackLayout> {
                 @Override
                 public void onSuccess(String childId) {
                     destroyStack(stackToDestroy);
-                    for (int i = 0; i < children.size() - 1; i++) {
+                    for (int i = 0; i < children.size(); i++) {
                         stack.set(children.get(i).getId(), children.get(i), i);
                         children.get(i).setParentController(StackController.this);
                         if (i == 0) {
Fix missing back button in last component on setStackRoot (#<I>)