Fix rare recursion condition in patchGlobal