Fixed error that prevented entire plot from saving