fixed a bug where saving an app, then clicking new app was causing errors