Correct LoadXMLFile bug