bug #1621 fixed avatar, parsing xml