ndists is updated when we remove a child node