fix(config) change config before setConfig