Fixed error when creating a group with the select all checkbox checked.