fixed config bugs