Fix group on postgres