Fixed the class toggling problem on the menu icons