fix mistake in xml output logic