Fix group by date