fix a xml output bug