some fixes
Fix xml in CPatches.cpp