bugfix (node deletion when figure is not finished)