fix text node reattachment when parent changes but node value does not