Fix checkStyleToggleVisibility