fixed xml parsing bug