group functions fixed.
Merge pull request #16 from ad-revenue-pj/fix-group-function

Fix group function