handle the case when setEndDate/setStartDate is called before load