Fix bugs in the "Select All" checkbox.