fix loadXML bug