Fixed startup crash when program is saved.