fixing xml output