Got checkboxes to be checked properly.