Fixed appendNodeSegment