Solved problem when XML only has one item