Corrected config saving