Properly sync check boxes