Fix up adding/deleting nodes