Fix bug in checkedflag li handling.