fix for toggle css classes