Fix a bug where grouped checkboxes would all have the same value