fix auto toggle regression