Fix config.flags is never passed to xml