Fixed xml reader bug