fix invalid XML in cache