fix another toggle button bug