Correctly save configuration