bugfixes for startDate and endDate options