fix (I hope) the issue that data is lost if a project is saved before a fit is done