fix xml code bug