fixed excessive CPU use when patching takes too long