fix up the NaN in the date field