fix xml reader