Fixed XML Parsing Bug