Fixed exporting graphs