Fix problem when selection contains deleted node.
Use inflow/outflow as part of wall functionality