fixing xml parsing issue