fix a bug in create community
Merge pull request #751 from swatisingh10/CS

fix a bug in create community