update the root node when setting a nested attribute