fix save config