Corrected arguments to filter_dates