Fixed bug preventing groups from being created