fix some configuration bugs