Bug fixes for settings file.