fix bad xml output