fixed checkbox state issue