fix for spawnbug and hang on missing settingsfile

fix for spawnbug and hang on missing settingsfile