fixing xml rendering issue