toggle checkbox bug fix