Fix invalid tasks size when fromDate or toDate changes
Merge branch 'collapse-range'