making a fix on the save_config method