fixed a group by clause

Yeah...