fixed bug in the monthy grouping for index pages