Fix on date filter in statistics.