fixing a small bug after adding the date filters