fix config.xml generation