fix xml error ouput bug