Fix invalid settings.