Fix xml response generator bug