Fix setting the title of the graph in the configure dialog.
Correctly delete the removed instance.