Fixed delete of figures