remove some mistake in cfg consturction