fixed save to config bug