fixed config bugs.