[config] fix bugs in new config handling