fix link when startDate and endDate are incorrect (NaN)