fixed the issue that the settings file is not used.