Fixed bug where clients were added to groups before being created