fixed config saving