Fixed xml bug