workaround for problems with checking all checkboxes