Fixed bug where visualisation would crash when adding a node which was already in the dataset.