avoid clobbering original diff disable state when nested