Fix bug when overwrithing the data.xml file