Fix saving envirounment config