fixed some config bugs