small bugfix in toggle button