Fixed a problem with double parsed xml