fixe config bugs.