fixed problem with plot_open