Bugfixes for startDate and endDate options