fixed copy_plot_cell code