Fix the runtime error caused due to bad structure of the xml file