Fixed invalid date object.