Fix saving/loading configuration.