Fix minor bug for input xml file