fix GlobalPatches