removed small bug when saving checkboxes