fix adding nodes, and the sync target in the process