Fix group creation from categories