fixed small bug where unchecking all checkboxes would recheck all of the checkboxes, rather than the last checked ones