simple group by correction