fix some config issue