fixed a group by clause
Merge pull request #10 from belak/master

fixed a group by clause