fix edge case node iteration manipulations