Possibly fix invalid settings.