Fixed config bugs