Fixing the settings file