Fixed toggle button NPE.