Fixes errors when groups are disabled