resolve bug on the config handling