* fixed TypeError in settings which can be triggered when the settings are opened for the first time.