fixed toggle button error