fix error in simple xml parsing