Fixed bug in loading the settings.