Ensure that input data is synced.
Otherwise, changing the data source will render the labels from the old dataset and the polydata lines from the new dataset.
Otherwise, changing the data source will render the labels from the old dataset and the polydata lines from the new dataset.