some configuration bug fixes