Fix 500 error in Settings.