fix minor XML related bug