Make overlapping time blocks work by merging them.