fixed save config bug