Fix bug repeating the header for wrong date (not using the filtered list)