fix some configuration issue