Fixing settings file