Fixed compatibility issue with GridSwitcher.