attempt to fix up XML