fix broken xml output