Fixes the toggle issue once and for all.