Modify wall location line and wall types in the same graph

The list of elements in the node Element.GetParameterValueByName, in the second part of the graph is giving me the name of the elements that should come in the end of the graph as it is modify at the end of the definition, last node.
Anyone can tell us why???
I have to say though that the exercise works regardless this.