fix toggling