fix the stats command when passing a date.