fix toggle-all checkbox logic