fixed some bugs in the config.xml