[config] fix more bugs in new config handling