fixed bug where all dwc tags were replaced with the content for the first