fix bug at cfgmgr