Fix for panel toggles