Fixed creation of groups on client

Script would not create groups on client