Fixed writing of new toggles (not exiting)