fix togglestate