fix node update after pruning