Fix config XML parsing