fixed startDate bug