fix settings file loading