fix range for toggle