Fixed erroneous xml parsing