fix bug on config