Fix saving a change of plot type.