Fix startDate and endDate limit when batchMode on