fixing the toggles