fixed invalid date defect