fixing some bugs in config