fixed checkbox bug