Fix can not save config file