fix rotation issue with toggle button