Fix but with endDate.... lack of test