Fixed some issues with the settings file.