fix regression with loop toggles