Fix behavior of 'Check all' checkbox.