fix grouping by date on homepage