|  | 
 |  | 
 | 
												
													
														| 194 |                  }
 | 194 |                  }
 | 
												
													
														| 195 |              });
 | 195 |              });
 | 
												
													
														| 196 |          } else {
 | 196 |          } else {
 | 
												
													
														|  | 
 | 197 | +            backButtonHelper.addToPushedChild(last(children));
 | 
												
													
														| 197 |              push(last(children), new CommandListenerAdapter() {
 | 198 |              push(last(children), new CommandListenerAdapter() {
 | 
												
													
														| 198 |                  @Override
 | 199 |                  @Override
 | 
												
													
														| 199 |                  public void onSuccess(String childId) {
 | 200 |                  public void onSuccess(String childId) {
 | 
												
													
														| 200 |                      destroyStack(stackToDestroy);
 | 201 |                      destroyStack(stackToDestroy);
 | 
												
													
														| 201 | -                    for (int i = 0; i < children.size(); i++) {
 |  | 
 | 
												
													
														|  | 
 | 202 | +                    for (int i = 0; i < children.size() - 1; i++) {
 | 
												
													
														| 202 |                          stack.set(children.get(i).getId(), children.get(i), i);
 | 203 |                          stack.set(children.get(i).getId(), children.get(i), i);
 | 
												
													
														| 203 |                          children.get(i).setParentController(StackController.this);
 | 204 |                          children.get(i).setParentController(StackController.this);
 | 
												
													
														| 204 |                          if (i == 0) {
 | 205 |                          if (i == 0) {
 |