Fix on definition which closes all plots.