When tasks list is updated on refresh or when (un)selecting tasks list the counters displayed in the list header (Overdue, Flagged, Today, ...). This happens for filters that already are selected. So, to reproduce you have to:
- Have at least one overdue task
- Select "Overdue" filter
- Uncheck and check one of the tasks folders.