Revert "fix: segmation fault occurs when many groups are used (Close #24)"

This reverts commit b9fba1dc63ccb42a86e934011b468e6022fabb74.