Prevent window from being patched twice