Solved sibling scope issue, merging all scopes in stateStack.