Fixed checkbox dirty state

Checkbox's dirty state was not properly set when user checks/unchecks it.