Add attached attribute to node state. Fix node copy.