fix check all checkbox behaviour