Fix config saving