bug fix in save, filling checkboxes