Fix bug in settings.