fix bug in creating groups
Merge pull request #38 from kareth/master

fix in group creation