fix posgres group by issue