Fixed saving bug and another axis clear bug

Fixed bug where first save would fail and fixed another bug for axis
clearing on traces figure.