Fix save settings error