Fix bugs regarding checkboxes in data view